<!--
  Generated template for the HomePage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>
  <ion-toolbar>
    <ion-buttons left>
      <button ion-button icon-only color="light" (click)="openSearch()">
        <ion-icon name="user"></ion-icon>
      </button>
    </ion-buttons>
    <button ion-button small color="light" style="width: 30%" (click)="doRadio()">
      &nbsp;&nbsp;<ion-icon name="ios-apps-outline">&nbsp;&nbsp;</ion-icon>
      {{currentKind}}&nbsp;&nbsp;&nbsp;&nbsp;
    </button>
    <button ion-button small color="light" style="width: 65%" (click)="openSearch()">
      &nbsp;&nbsp;<ion-icon name="search">&nbsp;&nbsp;</ion-icon>
      搜索...&nbsp;&nbsp;&nbsp;&nbsp;
    </button>
  </ion-toolbar>
</ion-header>


<ion-content overflow-scroll="true">
  <ion-refresher (ionRefresh)="doRefresh($event)">
    <ion-refresher-content
      pullingIcon="arrow-dropdown"
      pullingText="{{'PULLING_TEXT'| translate}}"
      refreshingSpinner="circles"
      refreshingText="{{'REFRESHING_TEXT' | translate}}">
    </ion-refresher-content>
  </ion-refresher>

  <div style="width: 98%;margin: 0 auto;">
    <ion-grid>
      <ion-row>
        <ion-col col-3 *ngFor="let plan of pages">
          <ion-chip class="chip-color" (click)="openDetail(plan)">
            <ion-label class="selectable">{{plan.name}}</ion-label>
          </ion-chip>
        </ion-col>
      </ion-row>
    </ion-grid>
  </div>

  <ion-infinite-scroll (ionInfinite)="doInfinite($event)">
    <ion-infinite-scroll-content
      loadingSpinner="bubbles"
      loadingText="{{'LOADING_TEXT' | translate}}">
    </ion-infinite-scroll-content>
  </ion-infinite-scroll>
</ion-content>
